import Vue from 'vue'
import Vuerouter from 'vue-router'
import login from '@/views/login/0-login'
import homepage from '@/views/layout/home-page'
Vue.use(Vuerouter)

const router = new Vuerouter({
   routes:[
    {
      path:'/login',
      component:login
    },
    {
      path:'/homepage',
      component:homepage,
    },
    {
      path:'/',
      component:homepage,
      redirect:'/homepage'
    },
  ]
})
export default router
